<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/6/22
 * Time: 4:17 PM
 */
class YunCms
{
    //是否是创建者
    public static $isFounder;

    public static $adminUid;////后台登录用户ID

    public static $adminUserName;//后台登录用户名


    /**
     * 从参数中获取，不传默认0
     * @return int
     */
    public static function siteId(){
        $siteId = intval(request()->input('i'));
        return $siteId;
    }
    public static function autoUpdate(){
        return \app\common\services\AutoUpdate::isAuto();
    }
}